---
title: Dynamic Entry
description: Accessinig your collections with on-demand compilation.
---

## Usage

Enable [dynamic mode](/docs/mdx/async#dynamic-mode) on docs/doc collections, and import it from `dynamic` entry instead of `server`.

It offers the same output as `server` entry, while compiled properties have to be loaded via `load()` method.

```ts tab="Docs (Meta + Doc)"
// [!code highlight]
import { docs } from 'fumadocs-mdx:collections/dynamic';
import { loader } from 'fumadocs-core/source';

export const source = loader({
  baseUrl: '/docs',
  source: docs.toFumadocsSource(),
});
```

```ts tab="Doc"
// [!code highlight]
import { blogPosts } from 'fumadocs-mdx:collections/dynamic';
import { toFumadocsSource } from 'fumadocs-mdx/runtime/server';
import { loader } from 'fumadocs-core/source';

export const blog = loader({
  baseUrl: '/blog',
  source: toFumadocsSource(blogPosts, []),
});
```
